package mysql

import "gorm.io/gorm"

type Doc struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null;"`
}

//医生列表查询

func (d *Doc) DocList() (docs []*Doc, err error) {
	err = Db.Find(&docs).Error
	return
}
